<html>

<head>
	<title>openvidu-pitch-filter-demo</title>

	<meta name="viewport" content="width=device-width, initial-scale=1" charset="utf-8">
	<link rel="shortcut icon" href="resources/images/favicon.ico" type="image/x-icon">

	<!-- Bootstrap -->
	<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
	<!-- Bootstrap -->

	<link rel="stylesheet" href="style.css" type="text/css" media="screen">
	<script src="openvidu-browser-2.17.0.js"></script>
	<script src="app.js"></script>
</head>

<body>

	<nav class="navbar navbar-default">
		<div class="container">
			<div class="navbar-header">
				<a class="navbar-brand" href="/"><img class="demo-logo" src="resources/images/openvidu_vert_white_bg_trans_cropped.png"/> Filters</a>
				<a class="navbar-brand nav-icon" href="https://github.com/OpenVidu/openvidu-tutorials/tree/master/openvidu-filters" title="GitHub Repository" target="_blank"><i class="fa fa-github" aria-hidden="true"></i></a>
				<a class="navbar-brand nav-icon" href="http://www.docs.openvidu.io/en/stable/advanced-features/filters/" title="Documentation" target="_blank"><i class="fa fa-book" aria-hidden="true"></i></a>
			</div>
		</div>
	</nav>

	<div id="main-container" class="container">
		<div id="join">
			<div id="img-div"><img src="resources/images/openvidu_grey_bg_transp_cropped.png" /></div>
			<div id="join-dialog" class="jumbotron vertical-center">
				<h1>Join a video session</h1>
				<form class="form-group" onsubmit="joinSession(); return false">
					<p>
						<label class="label-title">Session</label>
						<input class="form-control" type="text" id="sessionId" required>
                    </p>
                    <p>
						<label class="label-title">Participant</label>
						<input class="form-control" type="text" id="userName" required>
                    </p>
                    <p>
                        <label class="label-title">Role</label>
                        <div id="radio-btns">
                            <label class="radio-inline" data-toggle="tooltip" data-placement="top" title="Subscribers cannot publish video and therefore cannot apply filters">
                                <input type="radio" onclick="handleRadioBtnClick(this)" name="role" value="SUBSCRIBER">Subscriber
                            </label>
                            <label class="radio-inline" data-toggle="tooltip" data-placement="top" title="Publishers can apply filters to their own streams">
                                <input type="radio" onclick="handleRadioBtnClick(this)" name="role" value="PUBLISHER" checked>Publisher
                            </label>
                            <label class="radio-inline" data-toggle="tooltip" data-placement="top" title="Moderators can apply filters to their own streams and other users streams">
                                <input type="radio" onclick="handleRadioBtnClick(this)" name="role" value="MODERATOR">Moderator
                            </label>
						</div>
						<div id="filter-enabled" class="checkbox">
							<label><input type="checkbox" id="start-filter-enabled" name="startFilterEnabled" value="false">Start with filter enabled?</label>
						</div>
                    </p>
					<p class="text-center">
						<input class="btn btn-lg btn-success" type="submit" name="commit" value="Join!">
					</p>
				</form>
			</div>
		</div>

		<div id="session" style="display: none;">
			<div id="session-header">
				<h1 id="session-title"></h1>
				<div id="div-btns">
					<input class="btn btn-large btn-danger" type="button" id="buttonLeaveSession" onmouseup="leaveSession()" value="Leave session">
					<div id="filter-btns">
						<div id="filter-applied-opts">
							<input class="btn btn-large btn-info" type="button" id="buttonApplyFilter" onmouseup="applyFilter()" value="Apply filter">
							<div id="filter-radio-btns">
								<label class="radio-inline">
									<input type="radio" name="filter" value="Grayscale" checked>Grayscale
								</label>
								<label class="radio-inline">
									<input type="radio" name="filter" value="Rotation">Rotation
								</label>
								<label class="radio-inline">
									<input type="radio" name="filter" value="Faceoverlay">Faceoverlay
								</label>
								<label class="radio-inline">
									<input type="radio" name="filter" value="Videobox">Video box
								</label>
								<label class="radio-inline">
									<input type="radio" name="filter" value="Audioecho">Audio echo
								</label>
								<label class="radio-inline">
									<input type="radio" name="filter" value="Amplify">Audio amplify
								</label>
								<label class="radio-inline">
									<input type="radio" name="filter" value="Pitch">Pitch
								</label>
								<label class="radio-inline">
									<input type="radio" name="filter" value="Text">Text
								</label>
								<label class="radio-inline">
									<input type="radio" name="filter" value="Time">Time
								</label>
								<label class="radio-inline">
									<input type="radio" name="filter" value="Clock">Clock
								</label>
								<label class="radio-inline">
									<input type="radio" name="filter" value="Chroma">Chroma (blue)
								</label>
							</div>
						</div>
						<div id="filter-removed-opts">
							<input class="btn btn-large btn-info" type="button" id="buttonRemoveFilter" onmouseup="removeFilter()" value="Remove filter">
						</div>
						<div id="info-msg">This are just some examples of available filters. There are a lot more. Visit <a href="https://docs.openvidu.io/en/stable/advanced-features/filters" target="_blank">openvidu.io</a> docs for further information</div>
					</div>
				</div>
				<div id="main-video" class="col-md-6"><div id="main-video-data"><p></p></div><video autoplay playsinline="true"></video></div>
				<div id="video-container" class="col-md-6"></div>
			</div>
		</div>
	</div>

	<footer class="footer">
		<div class="container">
			<div class="text-muted">OpenVidu © 2017</div>
			<a href="http://www.openvidu.io/" target="_blank"><img class="openvidu-logo" src="resources/images/openvidu_globe_bg_transp_cropped.png"/></a>
		</div>
	</footer>

</body>

</html>
